<?php
require_once("/home/bluecbhv/Jcuhelpers-WebTech/Common/Helpers/Constants.php");

/***********************************************
	This class would save the filtered JSON
	data as a new JSON file.
************************************************/
class NewJSONFileCreation {
	private $newJSONFile = NULL;
	
	/************************************************************/
	
	function __construct($jsonDataToBeSaved) {
		$this->newJSONFile = fopen(SEARCH_RESULTS_FILEPATH, 'w');
		fwrite($this->newJSONFile, "<script>\n".$jsonDataToBeSaved."\n</script>");
		fclose($this->newJSONFile);
	}
}
?>